package com.nuoniu.sibanyun.entity.erp.barcode;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 条码管理-条码主档
 * </p>
 *
 * @author 白强
 * @since 2021-11-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bc_barcode_main_info")
@ApiModel(value="ErpBarcodeMainInfo对象", description="条码管理-条码主档")
public class ErpBarcodeMainInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "条码规则ID")
    @TableField("barcode_rule_id")
    private Integer barcodeRuleId;

    @ApiModelProperty(value = "条码规则名称")
    @TableField("barcode_rule_name")
    private String barcodeRuleName;

    @ApiModelProperty(value = "条码")
    @TableField("bar_code")
    private String barCode;


    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "物料ID")
    @TableField("inventory_id")
    private Integer inventoryId;

    @ApiModelProperty(value = "物料名称")
    @TableField("inventory_name")
    private String inventoryName;

    @ApiModelProperty(value = "物料编码")
    @TableField("inventory_code")
    private String inventoryCode;

    @ApiModelProperty(value = "规格")
    @TableField("inventory_specification")
    private String inventorySpecification;

    @ApiModelProperty(value = "打印数量")
    @TableField("print_quantity")
    private BigDecimal printQuantity;

    @ApiModelProperty(value = "是否有效")
    @TableField("is_enable")
    private Integer isEnable;

    @ApiModelProperty(value = "流水号")
    @TableField("serial_number")
    private Integer serialNumber;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人名称")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "修改人")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("update_user_name")
    private String updateUserName;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "来源单id")
    @TableField("source_voucher_id")
    private Integer sourceVoucherId;

    @ApiModelProperty(value = "来源单号")
    @TableField("source_voucher_code")
    private String sourceVoucherCode;

    @ApiModelProperty(value = "来源单据")
    @TableField("source_voucher_type")
    private String sourceVoucherType;

    @ApiModelProperty(value = "来源单据日期")
    @TableField("source_voucher_date")
    private LocalDate sourceVoucherDate;

    @ApiModelProperty(value = "来源明细ID")
    @TableField("source_detail_id")
    private Integer sourceDetailId;

    @ApiModelProperty(value = "货位id")
    @TableField("inventory_location_id")
    private Integer inventoryLocationId;

    @ApiModelProperty(value = "货位名称")
    @TableField("inventory_location_name")
    private String inventoryLocationName;

    @ApiModelProperty(value = "货位编码")
    @TableField("inventory_location_code")
    private String inventoryLocationCode;

    @ApiModelProperty(value = "主计量ID")
    @TableField("base_unit")
    private Integer baseUnit;

    @ApiModelProperty(value = "主计量名称")
    @TableField("base_unit_name")
    private String baseUnitName;

    @ApiModelProperty(value = "数量")
    @TableField("base_quantity")
    private BigDecimal baseQuantity;

    @ApiModelProperty(value = "换算率")
    @TableField("unit_exchange_rate")
    private BigDecimal unitExchangeRate;

    @ApiModelProperty(value = "单计量id")
    @TableField("unit_id")
    private Integer unitId;

    @ApiModelProperty(value = "计量单位组ID")
    @TableField("unit_group_id")
    private Integer unitGroupId;

    @ApiModelProperty(value = "辅计量ID")
    @TableField("sub_unit")
    private Integer subUnit;

    @ApiModelProperty(value = "辅计量名称")
    @TableField("sub_unit_name")
    private String subUnitName;

    @ApiModelProperty(value = "辅计量数量")
    @TableField("sub_quantity")
    private BigDecimal subQuantity;

    @ApiModelProperty(value = "税率")
    @TableField("tax_rate")
    private BigDecimal taxRate;

    @ApiModelProperty(value = "单价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "税额")
    @TableField("tax")
    private BigDecimal tax;

    @ApiModelProperty(value = "含税单价")
    @TableField("include_tax_price")
    private BigDecimal includeTaxPrice;

    @ApiModelProperty(value = "含税金额")
    @TableField("include_tax_amount")
    private BigDecimal includeTaxAmount;

    @ApiModelProperty(value = "暂估单价")
    @TableField("estimated_price")
    private BigDecimal estimatedPrice;

    @ApiModelProperty(value = "暂估金额")
    @TableField("estimated_amount")
    private BigDecimal estimatedAmount;

    @ApiModelProperty(value = "生产批号")
    @TableField("batch_no")
    private String batchNo;

    @ApiModelProperty(value = "项目ID")
    @TableField("project_id")
    private Long projectId;

    @ApiModelProperty(value = "项目名称")
    @TableField("project_name")
    private String projectName;

    @ApiModelProperty(value = "项目编码")
    @TableField("project_code")
    private String projectCode;

    @ApiModelProperty(value = "bomId")
    @TableField("bom_id")
    private Integer bomId;

    @ApiModelProperty(value = "bom版本号")
    @TableField("bom_name")
    private String bomName;

    @ApiModelProperty(value = "发货日期")
    @TableField("delivery_date")
    private LocalDate deliveryDate;

    @ApiModelProperty(value = "客户ID")
    @TableField("crm_id")
    private Integer crmId;

    @ApiModelProperty(value = "客户名称")
    @TableField("crm_name")
    private String crmName;

    @ApiModelProperty(value = "供应商id")
    @TableField("vendor_id")
    private Integer vendorId;

    @ApiModelProperty(value = "供应商名称")
    @TableField("vendor_name")
    private String vendorName;

    @ApiModelProperty(value = "部门ID")
    @TableField("office_id")
    private Integer officeId;

    @ApiModelProperty(value = "部门")
    @TableField("office_name")
    private String officeName;

    @ApiModelProperty(value = "业务员ID")
    @TableField("salesman_id")
    private Integer salesmanId;

    @ApiModelProperty(value = "业务员姓名")
    @TableField("salesman_name")
    private String salesmanName;

    @ApiModelProperty(value = "入库人ID(库管员ID)")
    @TableField("in_user_id")
    private Integer inUserId;

    @ApiModelProperty(value = "入库人姓名(库管员项目)")
    @TableField("in_user_name")
    private String inUserName;

    @ApiModelProperty(value = "入库日期")
    @TableField("in_date")
    private LocalDate inDate;

    @ApiModelProperty(value = "质检员ID")
    @TableField("inspect_user_id")
    private Integer inspectUserId;

    @ApiModelProperty(value = "质检员姓名")
    @TableField("inspect_user_name")
    private String inspectUserName;

    @ApiModelProperty(value = "生产日期")
    @TableField("produce_date")
    private LocalDate produceDate;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "明细条码总行数")
    @TableField("total_barcode_detail_record_number")
    private Integer totalBarcodeDetailRecordNumber;

    @ApiModelProperty(value = "明细条码总打印数")
    @TableField("total_barcode_detail_print_number")
    private Integer totalBarcodeDetailPrintNumber;

    @ApiModelProperty(value = "累计打印次数")
    @TableField("cum_print_times")
    private Integer cumPrintTimes;

    @ApiModelProperty(value = "累计打印份数")
    @TableField("cum_print_number")
    private Integer cumPrintNumber;

    @ApiModelProperty(value = "扩展属性JSON")
    @TableField("extend_json")
    private String extendJson;




}
